home *** CD-ROM | disk | FTP | other *** search
/ Champak 114 / Vol 114.iso / games / y2k_tetr.swf / scripts / DefineSprite_204 / frame_14 / DoAction.as
Encoding:
Text File  |  2010-08-12  |  556 b   |  37 lines

  1. if("4" >= y1)
  2. {
  3.    gotoAndPlay(15);
  4. }
  5. else
  6. {
  7.    if(sclines == "1")
  8.    {
  9.       score += "5";
  10.    }
  11.    else if(sclines == "2")
  12.    {
  13.       score += "20";
  14.    }
  15.    else if(sclines == "3")
  16.    {
  17.       score += "30";
  18.    }
  19.    else if(sclines == "4")
  20.    {
  21.       score += "40";
  22.    }
  23.    if(sclines != "0")
  24.    {
  25.       ln = length("" add score);
  26.       score1 = "" add score;
  27.       while(ln < "5")
  28.       {
  29.          score1 = "0" add score1;
  30.          ln += "1";
  31.       }
  32.       score2 = score1;
  33.    }
  34.    sclines = "0";
  35.    gotoAndPlay(25);
  36. }
  37.